/**
 * @author - lhn
 * @version - 1.0.0
 * @description - 路由配置
 * @file - router.ts
 * @datetime - 2025/2/28
 * @editor - lhn
 */

import { createRouter, createWebHashHistory } from 'vue-router';

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    { path: '/', name: 'home', redirect: '/tsDemo' },
    { path: '/main', name: 'main', component: () => import('@/views/MainPage.vue') },
    { path: '/starrySkyEffect', name: '星空', component: () => import('@/views/demo/StarrySkyEffectDemo.vue') },
    { path: '/camera', name: '摄像', component: () => import('@/views/demo/CameraPageDemo.vue') },
    { path: '/tsDemo', name: 'ts', component: () => import('@/views/demo/TsDemo.vue') },
    { path: '/agGrid', name: 'agGrid', component: () => import('@/views/demo/AgGridDemo.vue') },
    { path: '/tablePageDemo', name: 'tablePageDemo', component: () => import('@/views/demo/TablePageDemo.vue') },
    { path: '/wangeEditDemo', name: 'wangeEditDemo', component: () => import('@/views/demo/WangEditorDemo.vue') },
    { path: '/searchDemo', name: 'searchDemo', component: () => import('@/views/demo/SearchDemo.vue') }
  ]
});

export default router;